package com.intelligence.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 *
 * @TableName t_device_threshold
 */
@TableName(value ="t_device_threshold")
@Data
public class DeviceThreshold implements Serializable {
    /**
     * 传感器阈值信息表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 最小值
     */
    @TableField(value = "minThreshold")
    private BigDecimal minthreshold;

    /**
     * 最大值
     */
    @TableField(value = "maxThreshold")
    private BigDecimal maxthreshold;

    /**
     * 设备外键
     */
    @TableField(value = "deviceId")
    private Long deviceid;

    /**
     * 设备从属的气象站
     */
    @TableField(value = "monpointId")
    private Long monpointid;

    /**
     * 测量单位
     */
    @TableField(value = "measurementId")
    private Long measurementid;

    /**
     *
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
